package com.baifc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.support.StandardServletMultipartResolver;

import java.io.IOException;

/**
 * projectName: spring-in-action-web
 * packageName: com.baifc.config
 * Created: 2019/5/16.
 * Auther: baifc
 * Description:
 */
@Configuration
public class MultipartConfig {

    @Bean
    public MultipartResolver multipartResolver() throws IOException {
        return new StandardServletMultipartResolver();
    }
}
